FROM ubuntu:16.04

RUN apt-get update && apt-get install -y \
    tesseract-ocr \
	tesseract-ocr-chi-sim \
	python3-pip
	
COPY pip.conf /etc/pip.conf

COPY digits /usr/share/tesseract-ocr/tessdata/configs/digits

COPY requirements.txt /requirements.txt
RUN pip3 install --upgrade pip==20.3.4
RUN pip3 install -r requirements.txt 
COPY app.py /app.py
CMD python3 app.py
